package com.qiwo.bpm.domain;


import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * <pre>
 *  @author  chenwenchao
 *  @date 2021-04-01 16:15:01
 * 流程定义表
 * </pre>
 * <small> 2021-04-01 16:15:01 | chenwenchao</small>
 */
@Data
@SuppressWarnings("serial")
@TableName("flow_definition")
@EqualsAndHashCode(callSuper=true) 
public class FlowDefinition extends Model<FlowDefinition> implements Serializable {
	@TableId
	private Long id;

    /** 流程名称 */
    @ApiModelProperty("流程名称")
    @TableField("flow_name")
    private String flowName;

    /** 备注 */
    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    /** 流程状态 */
    @ApiModelProperty("流程状态")
    @TableField("state")
    private Integer state;

    /** 排序 */
    @ApiModelProperty("排序")
    @TableField("sort")
    private Integer sort;

    /** 流程类型 */
    @ApiModelProperty("流程类型")
    @TableField("flow_type")
    private Integer flowType;

    /** 流程定义xml */
    @ApiModelProperty("流程定义xml")
    @TableField("flow_xml")
    private String flowXml;

        @Override
        protected Serializable pkVal(){
            return this.id;
        }

    public String toString(){

        return "流程定义" + this.getFlowName() + "(id=" + getId() + ")";
    }

}
